-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address Selenium warnings #1135
Conversation
ENV GECKODRIVER_VERSION="v0.35.0" | ||
ENV GECKODRIVER_SHA=ac26e9ba8f3b8ce0fbf7339b9c9020192f6dcfcbf04a2bcd2af80dfe6bb24260 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Driver: link
michaelp@MacBook-Air-18 Downloads % shasum -a 256 geckodriver-v0.35.0-linux64.tar.gz
ac26e9ba8f3b8ce0fbf7339b9c9020192f6dcfcbf04a2bcd2af80dfe6bb24260 geckodriver-v0.35.0-linux64.tar.gz
michaelp@MacBook-Air-18 Downloads %
@@ -56,13 +56,12 @@ recommonmark==0.7.1 | |||
requests~=2.31.0 | |||
rich~=13.4.2 | |||
s3transfer~=0.6.1 | |||
selenium~=4.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only used in tests, so I moved it to dev-requirements.txt
.
result = browser.find_element_by_id("description-overflow-row_1") | ||
result = browser.find_element(By.ID, "description-overflow-row_1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making find_element
syntax consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me. Are we not worried about the warning in lines 3700-3701
in your
"after" screenshot?
That's a different warning. That can be addressed in another PR, imo. |
Description of Changes
Screenshots (if appropriate)
Before change:
After change (selenium warnings are gone:
Tests and Linting
develop
branch.pytest
passes on my local development environment.pre-commit
passes on my local development environment.